package com.healthcare.client.mapper;

import com.healthcare.client.pojo.Message;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.healthcare.client.vo.MessageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 聊天记录 Mapper 接口
 * </p>
 *
 * @author 新华医院转诊联盟
 * @since 2020-04-13
 */
public interface MessageMapper extends BaseMapper<Message> {

    /**
     * 显示消息记录
     * @param groupconsultationid 转诊id
     * @param referralid 会诊id
     * @return
     */
    List<MessageVo> messageVo(@Param("groupconsultationid") Integer groupconsultationid,@Param("referralid")Integer referralid,@Param("userId")Integer userId);
}
